<?php
/**
 * Side Box Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_featured.php 6128 2007-04-08 04:53:32Z birdbrain $
 */
  $content = "";
  $content .= '<ul>';
  $featured_box_counter = 0;
  while (!$random_featured_product->EOF && $featured_box_counter!=5) {
    $featured_box_counter++;
    $featured_box_price = zen_get_products_display_price($random_featured_product->fields['products_id']);
	$content .= '<li><div class="s_left">';
    $content .=  '<a href="' . zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'cPath=' . zen_get_generated_category_path_rev($random_featured_product->fields["master_categories_id"]) . '&products_id=' . $random_featured_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_featured_product->fields['products_image'], $random_featured_product->fields['products_name'], null, 50) . '</a></div>';
//tuqc
	$content .= '<div class="s_right">';
	$content .= '<a href="' . zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'cPath=' . zen_get_generated_category_path_rev($random_featured_product->fields["master_categories_id"]) . '&products_id=' . $random_featured_product->fields["products_id"]) . '">' . zen_trunc_string($random_featured_product->fields['products_name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a>';
	$content .= '<span class="big"><span id="products_price_text" class="products_price_text">'. $featured_box_price .
	'</span></span>';
    $content .= '</div></li>';
    //FEATURED: Change MoveNextRandom to MoveNext
    $random_featured_product->MoveNext();
  }
  $content .= "</ul>";
?>
